/*
*编写程序提示用户输入两个数，然后报告哪个数比较小
*/
#include <iostream>
using namespace std;

int main()
{	

	int iVal1,iVal2,min;
	cout << "请输入第一个数：";
	cin >> iVal1;
	cout << "请输入第一个数：";
	cin >> iVal2;
	if(iVal1 == iVal2)
	{
		cout << iVal1 << " = " << iVal2 << endl;
		system("pause");
		return 0;
	}
	else if(iVal1 > iVal2)
	{
		min = iVal2;
	}
	else
	{
		min = iVal1;
	}

	cout << "较小的数为：" << min << endl;

	system("pause");
	return 0;
}